package cn.zggsong.dao;

import cn.zggsong.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author LUXShare
 */
public interface UserMapper {
    /**
     * get all user
     * @return User
     */
    List<User> getUserList();

    /**
     * get user by id
     * @param id for search
     * @return User
     */
    User getUserById(int id);

    /**
     * insert user
     * @param user for insert
     */
    void insertUser(User user);

    /**
     * insert user2
     * @param map for insert
     */
    void insertUser2(Map<String, Object> map);

    /**
     * delete user
     * @param id for search
     */
    void deleteUser(int id);

    /**
     * update user
     * @param user for update
     */
    void updateUser(User user);
}
